package io.serializable;

import java.io.Serializable;
import java.util.List;

/**
 * todo
 *
 * @author: luolidong
 * @create: 2021-07-13 16:37
 * @version: 1.0
 */
public class Person implements Serializable {
    private static final long serialVersionUID = 1L;

    private int id;
    private String name;
    private static String phone="111111";
    private transient String pwd;
    private List<String> address;

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", phone='" + phone + '\'' +
                ", address=" + address +
                '}';
    }

    public Person(int id, String name, String pwd, List<String> address) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.address = address;
    }

    public static String getPhone() {
        return phone;
    }

    public static void setPhone(String phone) {
        Person.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public List<String> getAddress() {
        return address;
    }

    public void setAddress(List<String> address) {
        this.address = address;
    }
}
